package com.feicheng.iou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feicheng.iou.entity.Resource;
import com.feicheng.iou.pojo.resourcePublicSeaPOJO.ResourcePublicSeaParamPOJO;
import com.feicheng.iou.pojo.resourcePublicSeaPOJO.ResourcePublicSeaReturnListPOJO;

import java.time.LocalDateTime;
import java.util.List;
import com.feicheng.iou.pojo.ResourcePOJO;
import com.feicheng.iou.pojo.ResultResourcePOJO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
public interface ResourceMapper extends BaseMapper<Resource> {


//       @Select("SELECT t_question.*,t_student.`name` FROM t_question,t_student WHERE t_question.student_id=t_student.id")
//       List<ResourcePOJO> getQuestionStudent(ResourcePOJO page);
       List<ResultResourcePOJO> queryResourceAll(ResourcePOJO resourcePOJO);

       Integer queryResourceAllCount(ResourcePOJO resourcePOJO);

        List<ResultResourcePOJO> excelQueryResourceAll(ResourcePOJO resourcePOJO);

    /**
     * @Author wuweinan
     * @Description  查询出公海索信息列表
     * @Date 2021-6-29 17:19
     * @param resourcePublicSeaParamPOJO
     * @return List<ResourcePublicSeaReturnListPOJO>
     */
     List<ResourcePublicSeaReturnListPOJO> selectPublicSea(ResourcePublicSeaParamPOJO resourcePublicSeaParamPOJO);


    /**
     * @Author wuweinan
     * @Description  查询出公海信息的条数
     * @Date 2021-6-29 17:19
     * @param resourcePublicSeaParamPOJO
     * @return Integer
     */
     Integer statisticsSelectPublicSea(ResourcePublicSeaParamPOJO resourcePublicSeaParamPOJO);



    /**
     * @Author wuweinan
     * @Description  查询出对应用户的线索总条数
     * @Date 2021-8-9 17:19
     * @param autorId
     * @return autorId
     */
     Integer statisticsResourceCount(@Param("searchStartTime") LocalDateTime searchStartTime,
                                     @Param("searchEndTime") LocalDateTime searchEndTime,
                                     @Param("autorId") Integer autorId);




}
